﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Input;

using System.Windows;


namespace FXnaWpfBase
{

    /// <summary>
    /// 提供一些通用的command 模型
    /// </summary>
    public static class AppCommands
    {


        static AppCommands()
        {
            newProject = new RoutedUICommand("新建项目", "NewProject", typeof(AppCommands));

            saveProject = new RoutedUICommand("保存项目", "SaveProject", typeof(AppCommands));

            closeProject = new RoutedUICommand("关闭项目", "CloseProject", typeof(AppCommands));

            openProject = new RoutedUICommand("打开项目", "OpenProject", typeof(AppCommands));
        }


        #region 项目相关


        static RoutedUICommand saveProject;

        public static RoutedUICommand SaveProject
        {
            get { return AppCommands.saveProject; }

        }

        static RoutedUICommand openProject;

        public static RoutedUICommand OpenProject
        {
            get { return AppCommands.openProject; }

        }

        static RoutedCommand openProjectWithName = new RoutedCommand();

        public static RoutedCommand OpenProjectWithName
        {
            get { return AppCommands.openProjectWithName; }

        }



        static RoutedUICommand closeProject;

        public static RoutedUICommand CloseProject
        {
            get { return AppCommands.closeProject; }

        }


        static RoutedUICommand newProject;




        public static RoutedUICommand NewProject
        {
            get { return newProject; }
        }



        #endregion


        #region 帮助信息

        static RoutedCommand help = new RoutedCommand();
        /// <summary>
        /// 帮助
        /// </summary>
        public static RoutedCommand Help
        {
            get { return AppCommands.help; }
        }



        static RoutedCommand about = new RoutedCommand();
        /// <summary>
        /// 关于
        /// </summary>
        public static RoutedCommand About
        {
            get { return AppCommands.about; }
        }


        #endregion

    }
}
